package com.shenmazg6.vo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 军哥
 * @version 1.0
 * @description: PageInfoVo
 * @date 2022/12/19 16:26
 */

@Data
public class PageInfoVo implements Serializable {

    @Min(value = 1, message = "分页错误")
    private Integer pageNum;

    @Min(value = 1, message = "每页展示数量太小")
    @Max(value = 20, message = "每页展示数量太大")
    private Integer pageSize;

    @NotBlank(message = "关键字不允许为空")
    private String keyWord;
}
